#pragma once

#include "XtStruct.h"
typedef void(*ORDER)(const COrdinaryOrder& orderInfo, int nRequestId, const char* moduleTag);
typedef void (*testStockOrder)(const CAccountDetail& account, int nRequestId);
typedef  void(*CANCELACTION)(void(*cancel_order)(const char* accountKey, const long long nTaskId, const long long nGroupId, int nRequestId, const char* moduleTag));





ORDER xt_order;
testStockOrder testf;
CANCELACTION cancel_order;


void SetOrder(ORDER cb) {

	xt_order = cb;
}


void SetOrderTest(testStockOrder cb) {

	testf = cb;
}


void SetCancelOrder(CANCELACTION cb) {

	cancel_order = cb;
}

